import {get,post} from "../config/https_method";



/**
 * 学生分页列表
 */
export const getPageStudentList = data => get('/association/student/getPageStudentList', data);

export const addStudent = data => post('/association/student/addStudent', data);

export const updateStudent = data => post('/association/student/updateStudent', data);

export const deleteStudent = data => post('/association/student/deleteStudent', data);

export const getStudent = data => get('/association/student/getStudent', data);

export const updateStudentAndPassword = data => post('/association/student/updateStudentAndPassword', data);

/**
 * 获取社长名字
 * @param data
 * @returns {Promise | Promise<unknown>}
 */
export const getCreator = data => get('/association/student/getStudentUserNameById', data);


